/**
 * 用户管理业务
 */

import React, { Component } from "react";
import { Row, Col } from "antd";
import { observer } from "mobx-react";
import { observable } from "mobx";
import UserTable from "./compontents/UserTable";
// import { getUserFind } from "../ServeApi";
import "./index.less";

export interface UserManageProps {}

export interface UserManageState {}

@observer
class UserManage extends Component<UserManageProps, UserManageState> {
  // state = { :  }
  @observable protected TableData = [];
  render() {
    let { TableData } = this;
    return (
      <>
        <Row>
          <Col span={24}>
            {TableData ? <UserTable dataSouce={this.TableData} /> : null}
          </Col>
        </Row>
      </>
    );
  }
  componentDidMount() {}

  getFormData(pream: any) {
    let formData = new FormData();
    for (let key in pream) {
      formData.append(key, pream[key]);
    }
    return formData;
  }
}

export default UserManage;
